Moving svd to function call.