This is the shared code of capstone