Fixed a definition bug, whole thing is now compilable.