Prepare things for gem