Added some generic code for rupdate script