Moved normal generator to API