Fixed callback functions.