Moved some runtime checks to import time