Borrowed From slim team, meant for compiling omni.