Why is this in a separate function? (please add comment)