Added condition for apply process
Merge pull request #181 from hasgeek/issue-180

Added condition for apply process