Tweaks in the direction api and some user behavior debugging.