Uses more internal WordPress functions instead of trying to replicate