Added comments and renamed timer variable