Refactored methods.