Implemented quartz timer funcionality