Updated to work with new API layout

'->search' added to line 259