Why is the singleton pattern used here? Seems unnecessary and should be removed.