Add missing filename function