Externalize helper functions
Add 64 bits architecture