Removed result 'ok' and changed it to a boolean value