CODE: Cleaned up effect.c