Change named parameters to options hash