The Agency shall provide the Member States and the Commission with the technical and scientific assistance needed and with a high level of expertise , in order to help them to apply the Community legislation properly in the field of maritime safety , maritime security within the limits of the tasks defined in Article 2(b)(iv ) , prevention of pollution caused by ships , to monitor its implementation and to evaluate the effectiveness of the measures in place .