We need to pop useless things from the params here. Such as "mask*" in params.