To prevent the computer from ‘falling asleep’ you can install another app that will block sleep mode. Here are examples of apps for different operating systems:
App name: Caffeinated (download)
App name: Amphetamine (download)