Fixed code, added bot hosting mode