Rewrite of GRire project