Switching singleton implementation to use dispatch_once