Added convenience method for changing an idle or empty or initial-load-error state into an appropriate one based on the given parameters.