Added the Add function to the framework
Added priority when adding an item