Method lastRun is undefined