Added box variable and changed generate function