Bug fixes. Add prime example