Refactored localrc