Changed handle to INT and added error enum.