Added some error checking to rupdate