Add more validation of timeouts and priorities.