Some modified library functions.