Made robust against user input