WIP: replace Any with Object. Compiles but does not link, lots of functions missing. Probably also horribly broken still...