Updated option handling for pattern
Replace loader when task completes
Added explicit loader loading