Maybe add a default case for invalid methods?