Removed pipe argument from write() because it is useless.