Adding to examples and fixed bug with profile.