Make cleaner interface to effects in code