Removed needless codes.