Added check in processParams