Functions added, much bot work