Added functions to auto