Working version. Agent can move around all it likes.