Added Default Object and error checking