Smarter way of handling icons.