Added API functionality