Adding the basic plugin functionality.