Add missing center function