Modified to be more concise.