Re-implemented m168 in ES6. God DAMN.