Refactoring
Queue
add new ISpmhQueue option 'triggered', when set the queue will remain idle until the 'processQueue' function is called