Added possibility to get segment from uri method