Timer library and script