Changed lastMillis from an int to a long. Possibly fixed crashes? We'll see.