Begin re-implementation of refunds. Deprecated several methods which do not seem to be used.