Moved injected code into separate files