Work until optimization functions.