Fixed bugs and altered message processing priority