Prepare data for application