Speeding up p010 a bit