Finished email handler and added comands.