Removed fn in favor of a lambda