Added priority feature close #188 fix #44