Update BMPFunctions.as