All red implemented, added guards, improved thread use, updated licence