Changed 'type' key name