Added pause/resume implementation. Refactored dispatch routines using boost preprocessor library.