Fixing transistor/relay stuff