Added function wrapping.