Added functions; Added stored spaces; Added dialog for errors