Fixed a config bug and started on threading