Add some simple effects.

P.S. Slightly changed the code structure.