Replaced stupid chmod crap with 'tee'...