Modified for submission by Karthik