Changes leader to space and adds some other helpful functions