Added basic object avoidance funcionality