Changed the way Connection to the API dll/so works.