Added error checking