Third attempt to fit the code!