Use constants for API instead of direct links
Use version variable