It works! On to memory mamagement...