Some useful source code pieces.