Created handler function & added some idle time featuers
Added compiling script