Finished bmfpts function, started gui