Added truncate methods. Implements #80