Klim (submitter of the original patch) said that newer functions are significantly slower. So let's stick to the deprecated functions for now