Function doesn't like notify