Fixed width calculation of my prompt and renamed functions