Moved initialization of cloud in the main func