Split PSD functionalities into multiple files