Correct overwritten configuration

Association tasks #18, #58, #81, #82. Into account all the mistakes of the previous implementations. Implementation has been tested and is now being actively used.