Added in interrupt code to move around obstructions