Simplified code for what we need.