Machine grinds against rails