Replaced mas_unpack callbacks with a more functional interface
Eliminated remaining subprocess calls