Added refresh command.
Updated refresh routine.