Not working implementation of priorities