Added port bit functions