Split erc commands out of main file.