Working lua integration but still not satisfied