Added -t function fully functional