Created a callback function to make sure the timing of deleting/creating is in the right order
Merge pull request #7 from smitje1/master

Created a callback function to make sure the timing of deleting/creatingin is in the right order.