Used tvb_memeql rather than 4-5 lines of memcmp related code