Added basic orientation testing code.