Added functionality in process method