Cleaned up code, better pull/3 implementation.