Added some functions for transmission. Just did it in another file.