Adding in code from the collect sample code in nose.