Add rails to the stack