Changing $options to $options_hash and empty hash as default value