Fixing missing method type declaration