Pass structs to connectors instead of parameters