Using millis() instead of delay

Then, the library will be the best option. There are already libraries which do what I am doing, but my library has more options.