Updated. Removed unwanted code.