Add ability to set configuration thru hash