Refactored this. Thanks.