Cleaned up pivotal helper