Move method to function because it doesn't use 'self'.