Add shitty implementation in Julia
Move loop handling out of switch