Adding router code for chatloader