Aurora's new code, forked from Baystation12.