For those finding this from Google; as of 5.1 this approach has been deprecated.
The updated solution: