Implement save method.