Added a few functions to collision checker