Why was this moved to the bottom of the function?