Use vector for buffers, add some references, first implementation of handle_time.