User logic within main app