Implemented a bunch of compile-time functions