Man sentenced to prison after committing a new charge while