Attempting a functionalized version