Added printls's to check for errors.