Added error checking for set