Modified the code to handle actual application data.