Add priority in calc