Added return to collision function.