Created a simpler topfile that works on grains. Partialy tested.