Added class argument overload. No longer need to create an instance.