Added config and config factory class.