Made it ready to go and added some code to allow applying to a particular element