Resolve conflicts.
Add Chain of Responsibility pattern to code.