Fixed some initialisation issues. Fixed exit condition when nothing was allocated.
Attach a file by drag & drop or click to upload