Added Update Function, Added Some Error Messages.