Updated for BlogEngine 2.8