Split up context.c