Laying out functions for bot