Added collision map checking.