Started work on processing loop