Fixes to various errors, moved agent behaviour to landscape.