Removed exists function.
Small code style corrections.