Added z index offset