Regulated delivery of molecules