Rename and comment new functions for fixing stock ordering