Added refresh method

Added support for defining a refresh method