Changed plugins to contain more than one callback
Added some plugin functions