Generate generated.jl and use it