Added check for type, and print 'marked' if matches