Added code generator for timer