Start application function