Added the connection option for profiling