Learning omrails