Moved variables to separate file and create cache directories