Working towards Api compilation