Replaced functions to the new version of Mono.