Revert ec89201..d91708e

This rolls back to commit ec8920100f7b8caae22a3b7ca583cc15f025e3c0.
getDirection works!