Add align and getInt helper functions