Methods check, seems to be everything alright but there is an error exception at any point in the function.