Infrastructure for adding effects on layers