First pass at new base-px function