Refactored code to 'use namespace'.