Added exists() method, renamed some methods.