Added ability to pass in direction offset.