This should be working but due to a switch in x code versions i was no longer able to test it.