Added generate function. Attempted to fix HyperLink