Fixed Order of Operations; added support for paired operations.