Added debug function for internal lua use (not concommand)