Fixed #323 by removing duplicate function declaration.