Fixed method declaration to properly implement the interface