Added an error when missing params