Implemented basic if conditions.