Initial commit

Function from ISS 2014 to stay in bounds.