Added thanks for help on stackoverflow ;)