Adjusted Code