Added pin and unpin method