Modify GEMS file