Solves global variables problem (fixes #30)