Avoid using global variables | CAST Appmarq