First prototype is working.
Still need to implement -t switch properly