Changed one_of function to accept parameters instead of arrays