Add API functionality