Finished functionality with moar stuff for later w/ mod compat.