Removed dynamic following of current direction
Added option to calculate square separation (avoiding costly square root
operation)
Added more parameters