Removed the error throwing function