Updated to allow global usage of clearConditions() and correct parameter
direction documentation