Updated with better global post management.