Core non-UI functionality