Added priority, added compile script, fixed appending