Adapted to new function name
Adjusted the function vardata jump size

This hack really needs some explanation.
Removed void* casting from malloc calls