Change _custom_props functioin to a dictionary