Added -t type option