Added additional error checks for bike position function.