The Athena Algorithm