Removed psuedo code