Reduced code for simplicity.