Added Automatic selecttype option