Merging global into local