Added bounds calculation

- Note: code not working at this commit