Last worked on. Still unable to debug the context transition problem