Prepare for API