Added opts off gen code