Back port custom external functions.