Make transmission simulation into function