Correctly displays time and collects garbage