Fixed run loop, added an updating timer