Init Rail and other.

Init Rail and other.