Generate variables