Added module priority sorting, and ability to halt module message passing