Removed log and changed this reference on getTime