Don't use wp internal functions.