Added generate address to library