Summarize most data acquisition steps in one function