Mark createdFn as optional