Functions context working properly.

Signed-off-by: Lysander <lysandergc@gmail.com>