Cleaner way of doing it.