Removed duplicate callback function.