This code is just moved from above for better proximity.