Added init code array func