In addition to the excellent advice to stay in a context for a set period of time, personally I do best with 45 minutes chunks, you might also look at your contexts in terms of what program or software package or other tool or space you need to use to do them.