Okay turned I was using the deprecated API. I might as well do this the proper way.