Compiling version, needs to be tested