Added functions for lluatools