Adding fn version of chain of responsibility