Adding generator to hacks