Create map_object method, to clean up get_hidden_inputs