Injector allocates space from target for function variables instead of writing
them in stack area.

TODO: Error handling, verify that everything works, clean up and comment