Fix some bugs.  First pass rotation support.