Use closure instead of object to store timer