Detect choosen mode on Code