If I am really desperate to meet some deadline, I recruit a friend to work on it with me. That seems to help me focus.