Now handles methods with no parameters correctly. (Thanks jmbjorndalen)