Changed TimeObject to local variable instead of using $Self->{TimeObject}.