Rotation and Scale invariance finally added.