Removed old variables
Removed api_libs var form class collector
Check for transient state before returning