Change parameters to hash