Rail processing