Trying to get rid of error messages