Add time print in codes and new lua code