Remove start_pos from functions - use mid() instead