Added calculate movement bounds