RG Helper Functions // Cleaned up to better conform with WordPress coding standards