Sri | Overlord

if/else block is a separate function