Implemented Matthew's get direction stuff