Started writing code for pointer access fixing, some minor parts are still missing (macro generation according to limits and API fix).