Fixing the sequence of ops
Updating docs