Add checking for params