added code for THOR - though not working currently