Added periodic timer (untested)

Added some experimental code to get an update loop running