Added checking definied?(Thin)