Improving the user container callback function.