Improve profile copy

Close #30.