Added priority stuff for testing (doesn't work).