Performing actions in background thread.