Fixed some persisting bugs in the implementation
Added arrivedAt utility function