Fix build (custom functions)