Use each instead of Object.keys