Complete railway implementation.