Work on lua part, broken atm though