Fixed bug where timer would not continue when app is moved into background state.