Refactor julia_init