Template now communicates with API