Changed some pointers in main