Added timed command functions

Bugs still present