Refactored conditions into conditions() method