Rename get_effect function to effect