Adding attribute to singleton method