Added condition for apply process

Issue #180