Add ability to set priority by func()